<template>
   <uni-nav-bar title="充值规则" left-icon="left" @clickLeft="navBack" :fixed="true" statusBar></uni-nav-bar>
  <view style="padding: 16rpx 30rpx; background-color: white">
    <view v-html="content"></view>
  </view>
</template>

<script setup lang="ts">
import { authorMe } from '@/gql/user';
import { navBack } from '@/utils/navigator';
import { toPublish } from '@mqtt';
import { ref } from 'vue';
// view
const content = ref('');

function init() {
  const payload = {
    query: authorMe,
    variables: { code: 'czxz' },
  };
  toPublish('ql/driver/getMyblock', payload, (obj: any) => {
    const { data } = obj;
    content.value = data.get_myblock.content;
  });
}
init();
</script>
